package com.hdax.common.exception;


public enum BizCodeEnume {

    VALIE_EXCEPTION(10001,"参数格式校验失败"),
    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    PROEUCT_UP_EXCEPTION(11000,"商品上架异常"),

    VALUE_SSM_CODE(10002,"60秒以内只能发送一次"),
    USER_EXIST_EXCEPTION(15001,"用户名已经存在"),
    PHONE_EXIST_EXCEPTION(15001,"手机号已经存在"),

    LOGINACCT_PASSWORD(15003,"账号或密码错误"),
    NO_STOCK_EXCEPTION(21000,"商品库存不足");



    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    BizCodeEnume(Integer code, String msg){
        this.code=code;
        this.msg=msg;
    }



}
